package com.von.enums;

/**
 * @author xiaosai
 * @version 1.0
 * @date 2021/6/17 16:14
 * @describe
 * @className
 */
public enum ApiErrorCode {
    OK(0,"执行成功"),
    FAILED(1,"执行失败"),
    LOGIN_OK(2,"登录成功"),
    LOGIN_FAILED(3,"登录失败"),
    LOGIN_ACCOUNT_PASSWORD(4,"账号或者密码错误，请重试"),
    LOGIN_TOKEN_LOSE(5,"token失效，请重新登录"),
    SYSTEM_ERROR(9,"系统异常，稍后重试")
    ;
    private Integer code;
    private String msg;

    ApiErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
